﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="evection.aspx.cs" Inherits="AnyOffice.general.attend.personal.evection" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > 

<html>
  <head>
    <title>出差</title>
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  </head>
  <body class="bodycolor" topmargin="5">
	
    <form id="Form1" method="post" runat="server">
    
    <table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
  <tr>
    <td class="Big"><img src="/images/menu/attendance.gif" WIDTH="18" HEIGHT="18" align="absmiddle"><span class="big3"> 出差登记</span><br>
    </td>
  </tr>
</table>
<br>
<div align="center">
<input type="button"  value="新建出差登记" class="BigButton" onClick="location='evection_new.aspx';" title="新建出差登记">&nbsp;&nbsp;
<input type="button"  value="出差历史记录" class="BigButton" onClick="location='evection_history.aspx';" title="查看过往的出差记录">
<br>
<br>
<table border="0" cellspacing="1" width="95%" class="small" bgcolor="#000000" cellpadding="3">

</table>
</div>

<br>
				<asp:Repeater id="rptEvection" runat="server">
				<HeaderTemplate>
					<table border="0" cellspacing="1" width="95%" class="small" bgcolor="#000000" cellpadding="3"
					align="center">
						<TR class="TableHeader">
								<td nowrap align="center">出差地点</td>
								<td nowrap align="center">审批人员</td>
								<td nowrap align="center">事由</td>
								<td nowrap align="center">开始日期</td>
								<td nowrap align="center">结束日期</td>
								<td nowrap align="center">状态</td>
								<td nowrap align="center">操作</td>
							</TR>
				</HeaderTemplate>
				<ItemTemplate>
					<tr class="TableData">
							<td nowrap align="center"><%#Eval("EvectionDest")%></td>
							<td nowrap align="center"><%#Eval("UserName")%></td>
							<td><%#Eval("Reason")%></td>
							<td nowrap align="center"><%#Convert.ToDateTime(Eval("EvectionDate1").ToString()).ToString("yyyy-MM-dd")%></td>
							<td nowrap align="center"><%#Convert.ToDateTime(Eval("EvectionDate2").ToString()).ToString("yyyy-MM-dd")%></td>
							<td nowrap align="center" title="<%#Eval("NotReason")%>" style="cursor:hand;"><%#GetStatusName(Convert.ToInt32(Eval("Allow").ToString()))%></td>
							<td nowrap align="center">
								<%#Convert.ToInt32(Eval("Allow").ToString()) == 0 || Convert.ToInt32(Eval("Allow").ToString()) == 2 ? "<a href=\"evection_delete.aspx?evection_id=" + Eval("EvectionId").ToString() + "\">删除</a>" : ""%>
								<%#Convert.ToInt32(Eval("Allow").ToString()) == 1 ? "<a href=\"evection_back.aspx?evection_id=" + Eval("EvectionId").ToString() + "\">出差归来</a>" : ""%>
							</td>
						</tr>
				</ItemTemplate>
				<FooterTemplate>
					</table>
				</FooterTemplate>
				</asp:Repeater>				
			</asp:Panel>
			<asp:Literal id="litMessage" runat="server"></asp:Literal>

     </form>
	
  </body>
</html>
